﻿#ifndef ALGO_CAM_H_FORM_H
#define ALGO_CAM_H_FORM_H

#include <QWidget>
#include <QJsonObject>

namespace Ui
{
    class Algo_Cam_H_Form;
}

class Algo_Cam_H_Form : public QWidget
{
    Q_OBJECT

public:
    explicit Algo_Cam_H_Form(QString chnid, QWidget* parent = nullptr);
    ~Algo_Cam_H_Form();
    static bool mode_beltwidth;

private slots:
    void initForm();

    void on_btn_getparam_1_clicked();

    void on_btn_setparam_1_clicked();

    void on_btn_getparam_cam_f_baojing_clicked();

    void on_btn_setparam_cam_f_baojing_clicked();

    void on_btn_add_info_cam_f_clicked();

    void on_cbx_eventtype_currentIndexChanged(int index);

    QStringList type();

    void InputValidator();

    void on_btn_getparam_cam_f_belttear_clicked();

    void on_btn_setparam_cam_f_belttear_clicked();


    void on_btn_getparam_cam_f_fromdraw_clicked();

    void on_btn_setparam_cam_f_set_relay_clicked();

    void on_btn_SetBrokenChainParam_clicked();

public slots:
    void  onGetAlgoParam(QJsonObject obj);

    void  onGetAlarmOut(QJsonObject obj);

    void ondrawBeltZone(QJsonObject body);

signals:
    void sigSendParam(QString method, QJsonObject body);
    void sigaddinfo(QString);
    void sigGetBeltTearZone();

private:
    Ui::Algo_Cam_H_Form* ui;
    QString m_chnid;
};

#endif // ALGO_CAM_H_FORM_H
